/* 登录页面整体样式 */
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    box-sizing: border-box;
}

/* 登录容器样式 */
.login-container {
    width: 100%;
    max-width: 420px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 登录头部样式 */
.login-header {
    background: linear-gradient(135deg, #4a6cf7 0%, #3a5ce5 100%);
    color: white;
    padding: 30px 25px;
    text-align: center;
}

.login-header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* 表单样式 */
.login-form {
    padding: 30px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 表单选项样式 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3a5ce5;
    text-decoration: underline;
}

/* 登录按钮样式 */
.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a6cf7 0%, #3a5ce5 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #3a5ce5 0%, #2a4cd5 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

/* 测试账户样式 */
.demo-accounts {
    padding: 0 25px 20px;
    border-top: 1px solid #f0f2f5;
}

.demo-accounts p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-account {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-account:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.demo-username {
    font-weight: 600;
    color: #333;
}

.demo-password {
    color: #666;
    font-size: 14px;
}

.demo-role {
    color: #4a6cf7;
    font-size: 14px;
}

/* 登录底部样式 */
.login-footer {
    padding: 20px 25px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f2f5;
}

.login-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.login-footer a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        border-radius: 0;
    }

    .login-header {
        padding: 25px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-form {
        padding: 25px 20px;
    }

    .demo-accounts {
        padding: 0 20px 20px;
    }

    .login-footer {
        padding: 15px 20px;
    }

    .demo-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
